<?php
/**
 * @file name : my_utility_helper.php
 * @package   :
 * @author    : Vo Thanh Minh
 * @email     : <thanhminhld@yahoo.com - thanhminhld@gmail.com>
 * @copyright : 2011
 *
 */
    if (!defined('BASEPATH')) {
        exit('No direct script access');
    }
    /**
     * defaultPage
     *
     * This function will be redirect to control name
     * It only use when 'enable_query_strings' = true in config.php file
     */
    if ( ! function_exists('defaultPage')) {
        function defaultPage($controlName)
        {
            if (!is_string($controlName)) {
                return false;
            }
            header("Location:http://" . $_SERVER['HTTP_HOST'] . "/thokim/" . $controlName . "/");
        }
    }
?>